<#include "/jdbc-typescript-type.ftl">
${gen.setFilename("data.d.ts")}
${gen.setFilepath("${settings.sourcesPath}/ui/${entity.name}/Ant-Design-Pro/")}

export interface ${entity.name} {
<#list fields as field>
  <#if field.selected>
    // ${field.comment}<#if field.column.comment?trim?length gt 0 && field.comment != field.column.comment> (数据库字段说明：${field.column.comment})</#if>
    ${field.name}: ${getTypeScriptType(field.column)},
  </#if>
</#list>
}

export interface ${entity.name}TableListPagination {
  total: number;
  pageSize: number;
  current: number;
}

export interface ${entity.name}TableListData {
  list: ${entity.name}[];
  pagination: Partial<${entity.name}TableListPagination>;
}

export interface ${entity.name}TableListParams {
  status?: string;
  name?: string;
  desc?: string;
  key?: number;
  pageSize?: number;
  currentPage?: number;
  filter?: { [key: string]: any[] };
  sorter?: { [key: string]: any };
}
